#include <stdio.h>
#include <string.h>
#include "japi_p.h"
#include "cleanjapi.h"

#include "japilib.h"

/*
int    j_js(int w)
{
	return(japi_start());
}
*/


int    j_connect( char* arg0)
{ return( japi_connect(arg0));  }

int j_setport( int arg0)
{ japi_setport(arg0);
  return(arg0);}

void j_setdebug( int arg0)
{ japi_setdebug(arg0);  }

/*
int  j_frame(s)
{ return(japi_frame(s));}
*/

/*
int  j_button( int frm,  CleanString arg1)
{   int bt;
	bt =japi_button(frm, arg1);
    return(bt);}
*/
/*
int  j_graphicbutton( int frm, CleanString arg1)
{   return( japi_graphicbutton(frm, cStr(arg1)));  }
*/
/*
int  j_checkbox( int frm, CleanString arg1)
{   char *rstring;
    char buff[256];
    int i,  m;
	rstring= CleanStringCharacters(arg1);
    m= CleanStringLength(arg1);
    for (i=0; i<m; i++) {
			buff[i]= rstring[i];
	    }
    buff[m]= 0;
    return( japi_checkbox(frm, buff));  }
*/
/*
int  j_label( int frm,  CleanString arg1)
{   char *rstring;
    char buff[256];
    int lb, i,  m;
	rstring= CleanStringCharacters(arg1);
    m= CleanStringLength(arg1);
    for (i=0; i<m; i++) {
			buff[i]= rstring[i];
	    }
    buff[m]= 0;
    lb =japi_label(frm, buff);

	return( lb );  }
*/

int  j_graphiclabel( int arg0, char* arg1)
{ return( japi_graphiclabel(arg0, arg1));  }
/*
int  j_canvas( int frm,  int w, int h)
{   int cv;
	cv= japi_canvas(frm, w, h);

    return( cv);   }
*/
/*
int  j_panel( int arg0)
{ return( japi_panel(arg0));  }
*/
int  j_borderpanel( int arg0, int arg1)
{ return( japi_borderpanel(arg0, arg1));  }

int  j_radiogroup( int arg0)
{ return( japi_radiogroup(arg0));  }

int  j_radiobutton( int arg0, char* arg1)
{ return( japi_radiobutton(arg0, arg1));  }

/*
int  j_list( int arg0, int arg1)
{ return( japi_list(arg0, arg1));  }
*/
int  j_choice( int arg0)
{ return( japi_choice(arg0));  }
/*
int  j_dialog( int frm,  CleanString arg1)
{   char *rstring;
   char buff[256];
   int dlg, i,  m;
   rstring= CleanStringCharacters(arg1);
   m= CleanStringLength(arg1);
   for (i=0; i<m; i++) {
   		buff[i]= rstring[i];
    }
   buff[m]= 0;
   dlg =japi_dialog(frm, buff);
 //  japi_setpos(dlg, x, y);
 //  japi_setsize(dlg, w, h);
   return( dlg);
 }
*/
/*
int  j_window( int arg0)
{ return( japi_window(arg0));  }
*/
/*
int  j_popupmenu( int arg0, CleanString arg1)
{  char *rstring;
   char buff[256];
   int  i,  m;
   rstring= CleanStringCharacters(arg1);
   m= CleanStringLength(arg1);
   for (i=0; i<m; i++) {
   		buff[i]= rstring[i];
    }
   buff[m]= 0;

	return( japi_popupmenu(arg0, buff));  }
*/
int  j_scrollpane( int arg0)
{ return( japi_scrollpane(arg0));  }

/*
int  j_hscrollbar( int arg0, int arg1, int mn, int mx)
{ int sb;
  sb= japi_hscrollbar(arg0);
  japi_setslidesize(sb,arg1);
  japi_setmin(sb,mn);
  japi_setmax(sb,mx);
  return(sb); }
*/
/*
int  j_vscrollbar( int arg0, int arg1, int mn, int mx)
{ int sb;
  sb= japi_vscrollbar(arg0);
  japi_setslidesize(sb,arg1);
  japi_setmin(sb,mn);
  japi_setmax(sb,mx);
 // japi_setunitinc(sb,2);
 // japi_setblockinc(sb, 12);
  return(sb);  }
*/
int  j_line( int arg0, int arg1, int arg2, int arg3)
{ return( japi_line(arg0, arg1, arg2, arg3));  }

int j_prn(int arg0)
{ return( japi_printer(arg0)); }

/*
int  j_printer( int arg0)
{ return( japi_printer(arg0));  }
*/
/*
int j_print( int arg0)
{ japi_print(arg0);
  return(arg0); }
*/

/*
int myprint (int frame) {
	int printer= 0;
	while (printer <=0)
	  { printer= japi_printer(frame);
	    japi_drawstring(printer, 100, 100, "Hello");
	    japi_print(printer);
	  }
	return(printer); }
*/


int  j_image( int arg0, int arg1)
{ return( japi_image(arg0, arg1));  }

char*  j_filedialog( int arg0, char* arg1, char* arg2, char* arg3)
{ return( japi_filedialog(arg0, arg1, arg2, arg3));  }

char*  j_fileselect( int arg0, char* arg1, char* arg2, char* arg3)
{ return( japi_fileselect(arg0, arg1, arg2, arg3));  }
/*
CleanString  j_file_select( int arg0, CleanString msk)
{   char inhalt[256];
    char *mskstring;
    char buff[256];
    char *ans, *rstring;
    int i, m;
    mskstring= CleanStringCharacters(msk);
    m= CleanStringLength(msk);
	for (i=0; i<m; i++) {
	   		buff[i]= mskstring[i];
	    }
    buff[m]= 0;

    ans= japi_fileselect(arg0, "Select file", buff, inhalt);
    m= strlen(ans);
    CleanStringVariable(xxx, m);
	CleanStringLength(xxx) = m;
	rstring= CleanStringCharacters(xxx);
	for (i=0; i< m; ++i) {
				rstring[i]= ans[i];
		}
	return((CleanString)xxx); }
*/

int  j_messagebox( int arg0, char* arg1, char* arg2)
{ return( japi_messagebox(arg0, arg1, arg2));  }

int  j_alertbox( int arg0, char* arg1, char* arg2, char* arg3)
{ return( japi_alertbox(arg0, arg1, arg2, arg3));  }

int  j_choicebox2( int arg0, char* arg1, char* arg2, char* arg3, char* arg4)
{ return( japi_choicebox2(arg0, arg1, arg2, arg3, arg4));  }

int  j_choicebox3( int arg0, char* arg1, char* arg2, char* arg3, char* arg4, char* arg5)
{ return( japi_choicebox3(arg0, arg1, arg2, arg3, arg4, arg5));  }

int  j_progressbar( int arg0, int arg1)
{ return( japi_progressbar(arg0, arg1));  }

int  j_led( int arg0, int arg1, int arg2)
{ return( japi_led(arg0, arg1, arg2));  }

/*
int  j_sevensegment( int arg0, int initial_value, int color)
{   int seven;
    seven= japi_sevensegment(arg0, color);
   // japi_setpos(seven, x, y);
   // japi_setsize(seven, 40, 60);
    japi_setvalue(seven, initial_value);
	return(seven );  }
*/

/*
int  j_meter( int arg0,  CleanString s)
{   int m= CleanStringLength(s);
    char arg1[CleanStringLength(s)+1];
    char *rstring;
    int i;
    rstring= CleanStringCharacters(s);
    for (i=0; i < m; i++) {
	       arg1[i]= rstring[i];
    }
    arg1[m]=0;
	return( japi_meter(arg0, arg1));  }
*/
/*
int j_additem( int list, CleanString s)
{   int m= CleanStringLength(s);
    char arg1[CleanStringLength(s)+1];
    char *rstring;
    int i;
    rstring= CleanStringCharacters(s);
    for (i=0; i < m; i++) {
	       arg1[i]= rstring[i];
    }
    arg1[m]=0;
	japi_additem(list, arg1);
	return(list); }
*/
/*
int  j_textfield( int frm,  int arg1)
{   int txt, i, j;
	txt= japi_textfield(frm, arg1);
	//japi_setpos(txt, x, y);
	//japi_setsize(txt, w, h);
	 for (i= 0; i<5000; i++) {j= i*i;}
	return(txt);
	}
*/
/*
int  j_flowfield( int frm, int w, int h, int arg1)
{   int txt, i, j;
	txt= japi_textfield(frm, arg1);
	japi_setsize(txt, w, h);
	 for (i= 0; i<5000; i++) {j= i*i;}
	return(txt);
	}

*/
/*
int  j_txtarea( int frm,  int r, int c)
{    int ta;
     ta=  japi_textarea(frm, r, c);
     return(ta);}
*/
/*
int  j_textarea( int frm, int x, int y, int w, int h)
{    int ta;
     int panel;
     char *rc= "";
     panel= j_panel(frm);
     japi_setpos(panel, x, y);
     ta=  japi_textarea(panel, w, h);
     japi_setcolumns(ta, w/10);
     japi_setrows(ta, h/10);
     japi_settext(ta, rc);
     return(ta);}
*/

/*
int  j_menubar( int arg0)
{ return( japi_menubar(arg0));  }
*/
/*
int  j_menu( int frm, CleanString arg1)
{  char *rstring;
   char buff[256];
   int mnu, i,  m;
   rstring= CleanStringCharacters(arg1);
   m= CleanStringLength(arg1);
   for (i=0; i<m; i++) {
   		buff[i]= rstring[i];
    }
   buff[m]= 0;
   mnu =japi_menu(frm, buff);
   return( mnu);  }
*/

int  j_helpmenu( int arg0, char* arg1)
{ return( japi_helpmenu(arg0, arg1));  }
/*
int  j_menuitem( int mnu, CleanString arg1)
{   char *rstring;
    char buff[256];
	int mitem, i,  m;
	rstring= CleanStringCharacters(arg1);
    m= CleanStringLength(arg1);
    for (i=0; i<m; i++) {
	   		buff[i]= rstring[i];
	    }
    buff[m]= 0;
    mitem= japi_menuitem(mnu, buff);
	return( mitem);  }
*/
int  j_checkmenuitem( int arg0, char* arg1)
{ return( japi_checkmenuitem(arg0, arg1));  }
/*
int j_pack( int arg0)
{ japi_pack(arg0);
  return(arg0); }
*/
/*
int j_playsoundfile(int arg0, CleanString arg1)
{   char *rstring;
    char buff[256];
	int  i,  m;
	rstring= CleanStringCharacters(arg1);
    m= CleanStringLength(arg1);
    for (i=0; i<m; i++) {
	   		buff[i]= rstring[i];
	    }
    buff[m]= 0;
    japi_playsoundfile(buff);
	return(arg0);
}
*/
/*
int j_play( int arg0)
{ japi_play(arg0);
  return(arg0);}
*/
/*
int  j_sound( CleanString s)
{  int m= CleanStringLength(s);
   char arg1[CleanStringLength(s)+1];
   char *rstring;
   int i;
   rstring= CleanStringCharacters(s);
   for (i=0; i < m; i++) {
	   arg1[i]= rstring[i]; }
   arg1[m]= 0;
   return( japi_sound(arg1));   }
*/
void j_setfont( int arg0, int arg1, int arg2, int arg3)
{ japi_setfont(arg0, arg1, arg2, arg3);  }

void j_setfontname( int arg0, int arg1)
{ japi_setfontname(arg0, arg1);  }
/*
int j_setcourierfont( int arg0)
{ japi_setfontname(arg0, J_COURIER);
  return(arg0); }
*/
/*
int j_settimesfont( int arg0)
{ japi_setfontname(arg0, J_TIMES);
  return(arg0); }
*/
/*
int j_sethelvetiafont( int arg0)
{ japi_setfontname(arg0, J_HELVETIA);
  return(arg0); }
  */
/*
int j_setfontsize( int arg0, int arg1)
{ japi_setfontsize(arg0, arg1);
  return(arg0); }
*/
void j_setfontstyle( int arg0, int arg1)
{ japi_setfontstyle(arg0, arg1);  }

void j_seperator( int arg0)
{ japi_seperator(arg0);  }
/*
int j_disable( int arg0)
{ japi_disable(arg0);
  return(arg0); }
  */
/*
int j_enable( int arg0)
{ japi_enable(arg0);
  return(arg0); }
*/
/*
int    j_getstate( int arg0)
{ return( japi_getstate(arg0));  }
*/
int  j_getrows( int arg0)
{ return( japi_getrows(arg0));  }

int  j_getcolumns( int arg0)
{ return( japi_getcolumns(arg0));  }
/*
int  j_getselect( int arg0)
{ return( japi_getselect(arg0));  }
*/
int    j_isselect( int arg0, int arg1)
{ return( japi_isselect(arg0, arg1));  }

int    j_isvisible( int arg0)
{ return( japi_isvisible(arg0));  }

int    j_isparent( int arg0, int arg1)
{ return( japi_isparent(arg0, arg1));  }

int    j_isresizable( int arg0)
{ return( japi_isresizable(arg0));  }
/*
int j_select( int arg0, int arg1)
{ japi_select(arg0, arg1);
  return(arg0); }
*/
/*
int j_deselect( int arg0, int arg1)
{ japi_deselect(arg0, arg1);
  return(arg0); }
*/
void j_multiplemode( int arg0, int arg1)
{ japi_multiplemode(arg0, arg1);  }

void j_insert( int arg0, int arg1, char* arg2)
{ japi_insert(arg0, arg1, arg2);  }

void j_remove( int arg0, int arg1)
{ japi_remove(arg0, arg1);  }

void j_removeitem( int arg0, char* arg1)
{ japi_removeitem(arg0, arg1);  }

void j_removeall( int arg0)
{ japi_removeall(arg0);  }

/*
int j_setstate( int arg0, int arg1)
{ japi_setstate(arg0, arg1);
  return(arg0); }
*/
/*
int j_setrows( int arg0, int arg1)
{ japi_setrows(arg0, arg1);
  return(arg0); }
*/
/*
int j_setcolumns( int arg0, int arg1)
{ japi_setcolumns(arg0, arg1);
  return(arg0); }
 */
/*
int j_seticon( int arg0, int arg1)
{ japi_seticon(arg0, arg1);
  return(arg0); }
*/
void j_setimage( int arg0, int arg1)
{ japi_setimage(arg0, arg1);  }
/*
int j_setvalue( int arg0, int arg1)
{   japi_setvalue(arg0, arg1);
	return(arg0);  }
*/
void j_setradiogroup( int arg0, int arg1)
{ japi_setradiogroup(arg0, arg1);  }

void j_setunitinc( int arg0, int arg1)
{ japi_setunitinc(arg0, arg1);  }

void j_setblockinc( int arg0, int arg1)
{ japi_setblockinc(arg0, arg1);  }
/*
int j_setmin( int arg0, int arg1)
{ japi_setmin(arg0, arg1);
  return(arg0); }
*/
/*
int j_setmax( int arg0, int arg1)
{ japi_setmax(arg0, arg1);
  return(arg0); }
*/
/*
int j_setdanger( int arg0, int arg1)
{ japi_setdanger(arg0, arg1);
  return(arg0); }
*/
void j_setslidesize( int arg0, int arg1)
{ japi_setslidesize(arg0, arg1);  }
/*
int j_setcursor( int arg0, int arg1)
{ japi_setcursor(arg0, arg1);
  return(arg0); }
*/
/*
int j_nonresizable( int arg0)
{ japi_setresizable(arg0, J_FALSE);
  return(arg0); }
*/
/*
int j_setresizable( int arg0, int arg1)
{ japi_setresizable(arg0, arg1);
  return(arg0);}
*/

int  j_getlength( int arg0)
{ return( japi_getlength(arg0));  }
/*
int  j_getvalue( int arg0)
{ return( japi_getvalue(arg0));  }
*/
int  j_getdanger( int arg0)
{ return( japi_getdanger(arg0));  }
/*
int  j_getscreenheight(int arg0)
{return( japi_getscreenheight());  }
*/
/*
int  j_getscreenwidth(int arg0)
{ return( japi_getscreenwidth());  }
*/
/*
int  j_getheight( int arg0)
{ return( japi_getheight(arg0));  }
*/
/*
int  j_getwidth( int arg0)
{ return( japi_getwidth(arg0));  }
*/
int  j_getinsets( int arg0, int arg1)
{ return( japi_getinsets(arg0, arg1));  }

int  j_getlayoutid( int arg0)
{ return( japi_getlayoutid(arg0));  }

int  j_getinheight( int arg0)
{ return( japi_getinheight(arg0));  }

int  j_getinwidth( int arg0)
{ return( japi_getinwidth(arg0));  }
/*
CleanString  j_gettext( int arg0 )
{   char *ans, *rstring;

    char inhalt[64000];
    int i, m;
	ans= japi_gettext(arg0, inhalt);
	m= strlen(ans);
	CleanStringVariable(xxx, m);
	CleanStringLength(xxx) = m;
	rstring= CleanStringCharacters(xxx);

	for (i=0; i< m; ++i) {
			rstring[i]= ans[i];
	}

	return((CleanString)xxx);}
*/
char*  j_getitem( int arg0, int arg1, char* arg2)
{ return( japi_getitem(arg0, arg1, arg2));  }

int  j_getitemcount( int arg0)
{ return( japi_getitemcount(arg0));  }

void j_delete( int arg0, int arg1, int arg2)
{ japi_delete(arg0, arg1, arg2);  }

void j_replacetext( int arg0, char* arg1, int arg2, int arg3)
{ japi_replacetext(arg0, arg1, arg2, arg3);  }

void j_appendtext( int arg0, char* arg1)
{ japi_appendtext(arg0, arg1);  }

void j_inserttext( int arg0, char* arg1, int arg2)
{ japi_inserttext(arg0, arg1, arg2);  }

/*
int j_settext( int arg0, CleanString s)
{ int m= CleanStringLength(s);
  char arg1[CleanStringLength(s)+1];
  char *rstring;
  int i;
  rstring= CleanStringCharacters(s);
  for (i=0; i < m; i++) {
	  arg1[i]= rstring[i];
}
  arg1[m]=0;
  japi_settext(arg0, arg1);
  return(arg0);}
*/
void j_selectall( int arg0)
{ japi_selectall(arg0);  }

void j_selecttext( int arg0, int arg1, int arg2)
{ japi_selecttext(arg0, arg1, arg2);  }

int  j_getselstart( int arg0)
{ return( japi_getselstart(arg0));  }

int  j_getselend( int arg0)
{ return( japi_getselend(arg0));  }

char*  j_getseltext( int arg0, char* arg1)
{ return( japi_getseltext(arg0, arg1));  }

int  j_getcurpos( int arg0)
{ return( japi_getcurpos(arg0));  }

void j_setcurpos( int arg0, int arg1)
{ japi_setcurpos(arg0, arg1);  }

void j_setechochar( int arg0, char arg1)
{ japi_setechochar(arg0, arg1);  }

void j_seteditable( int arg0, int arg1)
{ japi_seteditable(arg0, arg1);  }

void j_setshortcut( int arg0, char arg1)
{ japi_setshortcut(arg0, arg1);  }
/*
int j_quit(int q )
{ japi_quit();
  return(q); }
*/
void j_kill( )
{ japi_kill();  }
/*
int j_setsize( int frm, int w, int h)
{ japi_setsize(frm, w, h);
  return(frm); }
*/
/*
int  j_getaction(int x )
{ return( japi_getaction());  }
*/
/*
int  j_nextaction( int x )
{ return( japi_nextaction());  }
*/
/*
int j_show( int arg0)
{ japi_show(arg0);
  return(arg0);}
*/
/*
int j_showpopup( int arg0, int arg1, int arg2)
{ japi_showpopup(arg0, arg1, arg2);
  return(arg0); }
*/
void j_add( int arg0, int arg1)
{ japi_add(arg0, arg1);  }

void j_release( int arg0)
{ japi_release(arg0);  }

void j_releaseall( int arg0)
{ japi_releaseall(arg0);  }

/*
int j_hide( int arg0)
{ japi_hide(arg0);
  return(arg0); }
*/
/*
int j_dispose( int arg0)
{ japi_dispose(arg0);
  return(arg0); }
*/
/*
int j_setpos( int arg0, int arg1, int arg2)
{ japi_setpos(arg0, arg1, arg2);
  return(arg0); }
*/
int  j_getviewportheight( int arg0)
{ return( japi_getviewportheight(arg0));  }

int  j_getviewportwidth( int arg0)
{ return( japi_getviewportwidth(arg0));  }

int  j_getxpos( int arg0)
{ return( japi_getxpos(arg0));  }

int  j_getypos( int arg0)
{ return( japi_getypos(arg0));  }

void j_getpos( int arg0, int* arg1, int* arg2)
{ japi_getpos(arg0, arg1, arg2);  }

int  j_getparentid( int arg0)
{ return( japi_getparentid(arg0));  }

/*
int j_setfocus( int arg0)
{ japi_setfocus(arg0);
  return(arg0); }
*/
int    j_hasfocus( int arg0)
{ return( japi_hasfocus(arg0));  }

int  j_getstringwidth( int arg0, char* arg1)
{ return( japi_getstringwidth(arg0, arg1));  }

int  j_getfontheight( int arg0)
{ return( japi_getfontheight(arg0));  }

int  j_getfontascent( int arg0)
{ return( japi_getfontascent(arg0));  }
/*
int  j_keylistener( int arg0)
{ return( japi_keylistener(arg0));  }
*/
/*
int  j_getkeycode( int arg0)
{ return( japi_getkeycode(arg0));  }
*/
int  j_getkeychar( int arg0)
{ return( japi_getkeychar(arg0));  }
/*
int  j_mouselistener( int arg0, int arg1)
{ return( japi_mouselistener(arg0, arg1));  }
*/
/*
int  j_getmousex( int arg0)
{ return( japi_getmousex(arg0));  }
*/
/*
int  j_getmousey( int arg0)
{ return( japi_getmousey(arg0));  }
*/
void j_getmousepos( int arg0, int* arg1, int* arg2)
{ japi_getmousepos(arg0, arg1, arg2);  }

int  j_getmousebutton( int arg0)
{ return( japi_getmousebutton(arg0));  }

int  j_focuslistener( int arg0)
{ return( japi_focuslistener(arg0));  }

int  j_componentlistener( int arg0, int arg1)
{ return( japi_componentlistener(arg0, arg1));  }

int  j_windowlistener( int arg0, int arg1)
{ return( japi_windowlistener(arg0, arg1));  }

void j_setflowlayout( int arg0, int arg1)
{ japi_setflowlayout(arg0, arg1);  }

/*
int j_sethorizontallayout( int arg0)
{ japi_setflowlayout(arg0, J_HORIZONTAL);
  return(arg0); }
*/
/*
int j_setverticallayout( int arg0)
{ japi_setflowlayout(arg0, J_VERTICAL);
  return(arg0); }
*/

void j_setborderlayout( int arg0)
{ japi_setborderlayout(arg0);  }

void j_setgridlayout( int arg0, int arg1, int arg2)
{ japi_setgridlayout(arg0, arg1, arg2);  }

void j_setfixlayout( int arg0)
{ japi_setfixlayout(arg0);  }

void j_setnolayout( int arg0)
{ japi_setnolayout(arg0);  }

void j_setborderpos( int arg0, int arg1)
{ japi_setborderpos(arg0, arg1);  }
/*
int j_sethgap( int arg0, int arg1)
{ japi_sethgap(arg0, arg1);
  return(arg0); }
*/
/*
int j_setvgap( int arg0, int arg1)
{ japi_setvgap(arg0, arg1);
  return(arg0); }
*/

void j_setinsets( int arg0, int arg1, int arg2, int arg3, int arg4)
{ japi_setinsets(arg0, arg1, arg2, arg3, arg4);  }

void j_setalign( int arg0, int arg1)
{ japi_setalign(arg0, arg1);  }

void j_setflowfill( int arg0, int arg1)
{ japi_setflowfill(arg0, arg1);  }

void j_translate( int arg0, int arg1, int arg2)
{ japi_translate(arg0, arg1, arg2);  }
/*
int j_cliprect( int arg0, int arg1, int arg2, int arg3, int arg4)
{ japi_cliprect(arg0, arg1, arg2, arg3, arg4);
  return(arg0);}
  */
/*
int j_drawrect( int cv, int x1, int y1, int x2, int y2)
{ japi_drawrect(cv, x1, y1, x2, y2);
  return(cv);}
*/
/*
int j_fillrect( int arg0, int arg1, int arg2, int arg3, int arg4)
{ japi_fillrect(arg0, arg1, arg2, arg3, arg4);
  return(arg0); }
*/
/*
int j_drawroundrect( int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
{ japi_drawroundrect(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  return(arg0); }
*/
/*
int j_fillroundrect( int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
{ japi_fillroundrect(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  return(arg0); }
*/
/*
int j_drawoval( int arg0, int arg1, int arg2, int arg3, int arg4)
{ japi_drawoval(arg0, arg1, arg2, arg3, arg4);
  return(arg0);}
*/
/*
int j_filloval( int arg0, int arg1, int arg2, int arg3, int arg4)
{ japi_filloval(arg0, arg1, arg2, arg3, arg4);
  return(arg0); }
*/
/*
int j_drawcircle( int cv, int cx, int cy, int rd)
{ japi_drawcircle(cv, cx, cy, rd);
  return(cv);}
*/
  /*
int j_fillcircle( int cv, int x, int y, int r)
{ japi_fillcircle(cv, x, y, r);
  return(cv);}
*/
/*
int j_drawarc( int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
{ japi_drawarc(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  return(arg0); }
*/
/*
int j_fillarc( int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
{ japi_fillarc(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  return(arg0);}
*/
  /*
int j_drawline( int arg0, int arg1, int arg2, int arg3, int arg4)
{ japi_drawline(arg0, arg1, arg2, arg3, arg4);
  return(arg0); }
*/
/*
void j_drawpolyline( int arg0, int arg1, int* arg2, int* arg3)
{ japi_drawpolyline(arg0, arg1, arg2, arg3);  }
*/
/*
int j_drawpolyline( int cv, CleanIntArray arg2, CleanIntArray arg3)
{   int sz= CleanIntArraySize(arg2);
	japi_drawpolyline(cv, sz, arg2, arg3);
	return(cv); }
*/
/*
void j_drawpolygon( int arg0, int arg1, int* arg2, int* arg3)
{ japi_drawpolygon(arg0, arg1, arg2, arg3);  }
*/
/*
int j_drawpolygon( int cv,  CleanIntArray arg2, CleanIntArray arg3)
{   int sz= CleanIntArraySize(arg2);
	japi_drawpolygon(cv, sz, arg2, arg3);
	return(cv); }
*/
/*
void j_fillpolygon( int arg0, int arg1, int* arg2, int* arg3)
{ japi_fillpolygon(arg0, arg1, arg2, arg3);  }
*/
/*
int j_fillpolygon( int cv,  CleanIntArray arg2, CleanIntArray arg3)
{   int sz= CleanIntArraySize(arg2);
	japi_fillpolygon(cv, sz, arg2, arg3);
	return(cv); }
*/
/*
int j_filltriangle(int arg0, int x1, int y1, int x2, int y2, int x3, int y3) {
    int x[3]={x1, x2, x3};
    int y[3]={y1, y2, y3};
    japi_fillpolygon(arg0, 3, x, y);
    return(arg0);
}
*/
/*
int j_drawtriangle(int arg0, int x1, int y1, int x2, int y2, int x3, int y3) {
    int x[3]={x1, x2, x3};
    int y[3]={y1, y2, y3};
    japi_drawpolygon(arg0, 3, x, y);
    return(arg0);
}
*/
/*
int j_drawpixel( int arg0, int arg1, int arg2)
{ japi_drawpixel(arg0, arg1, arg2);
  return(arg0); }
*/
/*
int j_drawstring( int cv, int x, int y, CleanString s)
{   int m= CleanStringLength(s);
  char arg1[CleanStringLength(s)+1];
  char *rstring;
  int i;
  rstring= CleanStringCharacters(s);
  for (i=0; i < m; i++) {
	  arg1[i]= rstring[i]; }
  arg1[m]=0;
  japi_drawstring(cv, x, y, arg1);
  return(cv);}
*/
void j_setxor( int arg0, int arg1)
{ japi_setxor(arg0, arg1);  }

/*
int j_setxortrue(int arg0) {
	japi_setxor(arg0, J_TRUE);
	return(arg0);
}
*/
int j_setxorfalse(int arg0) {
	japi_setxor(arg0, J_FALSE);
	return(arg0);
}
/*
int  j_getimage( int arg0)
{ return( japi_getimage(arg0));  }
*/
void j_getimagesource( int arg0, int arg1, int arg2, int arg3, int arg4, int* arg5, int* arg6, int* arg7)
{ japi_getimagesource(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);  }

void j_drawimagesource( int arg0, int arg1, int arg2, int arg3, int arg4, int* arg5, int* arg6, int* arg7)
{ japi_drawimagesource(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);  }
/*
int  j_getscaledimage( int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
{ return( japi_getscaledimage(arg0, arg1, arg2, arg3, arg4, arg5, arg6));  }
*/
/*
int j_drawimage( int cv, int img, int x, int y)
{ japi_drawimage(cv, img, x, y);
  return(cv);}
*/
void j_drawscaledimage( int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9)
{ japi_drawscaledimage(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);  }
/*
int j_setcolor( int cv, int x, int y, int z)
{ japi_setcolor(cv, x, y, z);
  return(cv);}
*/
/*
int j_setcolorbg( int arg0, int arg1, int arg2, int arg3)
{ japi_setcolorbg(arg0, arg1, arg2, arg3);
  return(arg0);}
*/
void j_setnamedcolor( int arg0, int arg1)
{ japi_setnamedcolor(arg0, arg1);  }


void j_setnamedcolorbg( int arg0, int arg1)
{ japi_setnamedcolorbg(arg0, arg1);  }
/*
int j_setbgcolor( int arg0, int arg1)
{ japi_setnamedcolorbg(arg0, arg1);
  return(arg0); }
*/
/*
int  j_loadimage( CleanString s)
{  int m= CleanStringLength(s);
   char arg1[256];
   char *rstring;
   int i;
   rstring= CleanStringCharacters(s);
   for (i=0; i < m; i++) {
	   arg1[i]= rstring[i]; }
   arg1[m]= 0;
   return( japi_loadimage(arg1));  }
*/

int    j_saveimage( int arg0, char* arg1, int arg2)
{ return( japi_saveimage(arg0, arg1, arg2));  }
/*
int    j_savebmp( int arg0, CleanString s)
{  int m= CleanStringLength(s);
   char arg1[CleanStringLength(s)+1];
   char *rstring;
   int i;
   rstring= CleanStringCharacters(s);
   for (i=0; i < m; i++) {
	   arg1[i]= rstring[i]; }
   arg1[m]= 0;
   return( japi_saveimage(arg0, arg1, J_BMP));  }
*/
/*
int    j_saveppm( int arg0, CleanString s)
{  int m= CleanStringLength(s);
   char arg1[CleanStringLength(s)+1];
   char *rstring;
   int i;
   rstring= CleanStringCharacters(s);
   for (i=0; i < m; i++) {
	   arg1[i]= rstring[i]; }
   arg1[m]= 0;
   return( japi_saveimage(arg0, arg1, J_PPM));  }
*/
/*
int    j_savejpg( int arg0, CleanString s)
{  int m= CleanStringLength(s);
   char arg1[CleanStringLength(s)+1];
   char *rstring;
   int i;
   rstring= CleanStringCharacters(s);
   for (i=0; i < m; i++) {
	   arg1[i]= rstring[i]; }
   arg1[m]= 0;
   return( japi_saveimage(arg0, arg1, J_JPG));  }
*/
/*
int    j_savegif( int arg0, CleanString s)
{  int m= CleanStringLength(s);
   char arg1[CleanStringLength(s)+1];
   char *rstring;
   int i;
   rstring= CleanStringCharacters(s);
   for (i=0; i < m; i++) {
	   arg1[i]= rstring[i]; }
   arg1[m]= 0;
   return( japi_saveimage(arg0, arg1, J_GIF));  }
 */
/*
int j_sync(int arg )
{ japi_sync();
  return(arg);}
*/
void j_beep( )
{ japi_beep();  }
/*
int  j_random( int x)
{  int r;
   double d;
   r= japi_random();
   d= ((double) r) / ((double) J_RANDMAX);
   d= d * ((double) x);
   r= (int) d;
   return(r);  }
*/
/*
int j_sleep( int arg0)
{ japi_sleep(arg0);
  return(arg0); }
*/


/* ******************** */
// Testes da interface de Clean com C
/* ======================= */

int prtmat(int sz, CleanIntArray m) {
	int i, a;

	a= 0;
	for (i=0; i<sz;i++) {
		printf("%d ", m[i]);
	    a= a+ m[i];
  }
    return(a);
	}

